package oop;

public class Student {//描述学生此类事务
    //事务描述类中不要写main方法
    //属性
    String name;
    int age;
    String gender;//性别

    public void eat(String food){
        System.out.println("姓名是:"+name+",年龄是:"+age+"的学生在吃"+ food);
    }
    public void sleep(){
        System.out.println("name = " + gender+"要睡的久一点");

    }
}
